package com.imooc.api.controller.admin;

import com.imooc.grance.result.GraceJsonResult;
import com.imooc.pojo.bo.SaveFriendLinBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * Created with IntelliJ IDEA.
 *
 * @auther Levi
 * @Date: 2021/03/21/17:16
 * @Description:
 */
@Api(tags = "友情链接管理Controller",value = "友情链接管理Controller")
@RequestMapping("friendLinkMng")
public interface FriendLinkControllerApi {

    @ApiOperation(value = "添加/更新友情链接接口",notes = "添加/更新友情链接接口",httpMethod = "POST")
    @PostMapping("/saveOrUpdateFriendLink")
    public GraceJsonResult saveOrUpdateFriendLink(@RequestBody @Valid SaveFriendLinBO saveFriendLinBO) ;

    @ApiOperation(value = "查询友情链接列表接口",notes = "查询友情链接列表接口",httpMethod = "POST")
    @PostMapping("/getFriendLinkList")
    public GraceJsonResult getFriendLinkList() ;

    @ApiOperation(value = "删除友情链接接口",notes = "删除友情链接接口",httpMethod = "POST")
    @PostMapping("/delete")
    public GraceJsonResult delete(String linkId) ;

    @ApiOperation(value = "门户端友情链接展示接口",notes = "门户端友情链接展示接口",httpMethod = "GET")
    @GetMapping("portal/list")
    public GraceJsonResult getPortalFriendLinkList(Integer isDelete);

}
